package net.wofly.right.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 员工角色表
 *
 * @author lign
 * @version 1.0
 * @created 22-9月-2017 19:35:44
 */
@Data
@Entity
@Table(name = "sale_right_userrole")
@ApiModel(description = "用户-角色关系")
public class UserRole {
    
    @Id
    private String userRoleID;
    @ApiModelProperty(value = "用户ID", required = true)
    private String userID;
    
    @ApiModelProperty(value = "角色ID", required = true)
    private String roleID;
    
    /**
     * 设置员工角色的员工ID
     */
    @ApiModelProperty(value = "设置用户角色的员工ID", required = true)
    private String setUserID;
    
    private Long modifyDate;
    
    public UserRole() {
        
    }
    @Override
    public void finalize() throws Throwable {
        
    }
}